package micro.beauty.order.converter;

import micro.beauty.common.tool.convert.BaseEntityConverter;
import micro.beauty.common.tool.utils.BeanUtil;
import micro.beauty.order.dto.OrderResponseDTO;
import micro.beauty.order.entity.Order;

/**
* @Description:    订单实体转dto
* @Author:         Liuliya
* @CreateDate:     2020/10/15 23:29
*/
public class OrderConverter extends BaseEntityConverter<Order, OrderResponseDTO> {

    @Override
    public OrderResponseDTO entity2Dto(Order order) {
        return BeanUtil.copy(order, OrderResponseDTO.class);
    }
}
